package com.biglead.orderservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.biglead.common.pojo.OrderInfo;
import com.biglead.common.pojo.OrderMessage;

public interface OrderService extends IService<OrderInfo> {

    /**查询订单详情*/
    OrderInfo queryById(Long id);

    OrderInfo createWrongOrder(Long goodsId, Long userId) throws Exception;

    OrderInfo createOrderWithLimitAndRedis(Long goodsId, Long userId) throws Exception;

    void consumerTopicToCreateOrderWithKafka(OrderMessage orderMessage) throws Exception;
}